index list c#

34

c# list index -

// Get the first item from the list

using System.Linq;

var myList = new List<string>{ "Yes", "No", "Maybe"};
var firstItem = myList.ElementAt(0);

// Do something with firstItem

index list c# -

list1[0];

c# list index -

list1[0];

Comments

Submit
0 Comments